//  删除对象中的空值
const paramsDeleteEmpty = (params) => {
    if (typeof (params) === 'object') {
        let _obj = {}
        for (let key in params) {
            let value = params[key]
            if (typeof (value) === 'string') {
                value = value.trim()
            }
            if (typeof (value) !== 'string' || value !== '') {
                _obj[key] = value
            }
        }
        return _obj
    } else {
        return params
    }
}

export default paramsDeleteEmpty